keyPath
:
API Credentials.[Shortcut Input]

Input
:
[Shortcut Input]
Workflow
:
{ "workflowIdentifier": "5D2F2008-BC19-4DD2-95A1-254B48FDDD52", "workflowName": "Request Authorizaiton Code", "isSelf": false }
https://developers.google.com/identity/protocols/oauth2/web-server#exchange-authorization-code
{ "client_id": "[0 Value as Dictionary.clientID]", "client_secret": "[0 Value as Dictionary.clientSecret]", "grant_type": "authorization_code", "code": "[2 authorizationCode]", "redirect_uri": "https://localhost:8000" }

Input
:
[5 Dictionary]
Workflow
:
{ "workflowIdentifier": "CFFCCE6F-343B-44A0-8F9F-1069BB9EEC6B", "workflowName": "Create Query Item from Dictionary", "isSelf": false }

HTTPBodyType
:
File
ShowHeaders
:
false
HTTPHeaders
:
{}
HTTPMethod
:
POST

https://developers.strava.com/docs/authentication/#tokenexchange
{ "client_id": "[0 Value as Dictionary.clientID]", "client_secret": "[0 Value as Dictionary.clientSecret]", "grant_type": "authorization_code", "code": "[2 authorizationCode]" }

Input
:
[12 Dictionary]
Workflow
:
{ "workflowIdentifier": "CFFCCE6F-343B-44A0-8F9F-1069BB9EEC6B", "workflowName": "Create Query Item from Dictionary", "isSelf": false }

HTTPBodyType
:
File
ShowHeaders
:
false
HTTPHeaders
:
{}
HTTPMethod
:
POST

https://developer.spotify.com/documentation/web-api/tutorials/code-flow#request-an-access-token
{ "grant_type": "authorization_code", "code": "[2 authorizationCode]", "redirect_uri": "https://localhost:8000" }

Input
:
[19 Dictionary]
Workflow
:
{ "workflowIdentifier": "CFFCCE6F-343B-44A0-8F9F-1069BB9EEC6B", "workflowName": "Create Query Item from Dictionary", "isSelf": false }
[0 Value as Dictionary.clientID]:[0 Value as Dictionary.clientSecret]

Base64LineBreakMode
:
None

HTTPBodyType
:
File
ShowHeaders
:
true
HTTPHeaders
:
{ "Authorization": "Basic [22 Base64 Encoded]", "Content-Type": "application/x-www-form-urlencoded" }
HTTPMethod
:
POST

MatchTextCaseSensitive
:
false

keyPath
:
Text Divider
Input
:
[Contents of URL]
Workflow
:
{ "workflowIdentifier": "0F135E84-71A6-46BF-BC50-10FC69B847A2", "workflowName": "Pretty Print Dictionary", "isSelf": false }

body
:
[29 Shortcut Result]
title
:
⚠ Something went wrong

subtitle
:
[28 Value]

overwriteStrategy
:
alwaysAllow
keyPath
:
API Credentials.[Shortcut Input].refreshToken
values
:
[Contents of URL as Dictionary.refresh_token]